cd /data/sbky-exam
echo '停止api服务'
./deploy.sh stop

cd /home/code-source/sbky-exam/
echo '更新api代码'
git pull https://gitee.com/itcalvin/exam.git

cd /home/code-source/sbky-exam/src
echo '打包api'
mvn clean package -Dmaven.test.skip=true
echo '拷贝api'
cp /home/code-source/sbky-exam/src/sys-web/target/exam-4.3.1.jar /data/sbky-exam

cd /data/sbky-exam
echo '启动api服务'
./deploy.sh start
